<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta charset="utf-8">
	<title>淘天机站群系统管理后台</title>
	<!-- include header_meta -->
</head>

<body>
	<!-- include header --> 	
		<div class="cp-wrap {if $jnarrow}jnarrow{/if}">
			<div class="crumb"> > 编辑广告</div>
			<div class="cp-form">
				<div class="box">
					<form method="POST" class="AjaxPost">
						<div class="control-group">
							<label class="control-label" for="name">广告位标记：</label>
							<div class="controls">
								<input type="text" class="input-xlarge" value="{$r[abc]}" style="width:250px;" disabled="disabled">
								<font color="red">用于前台调用广告，请勿重复。</font>调用方式如：
								<font>&lt;!-- tag::ad('{$r[abc]}') --&gt;</font>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="name">广告位名称：</label>
							<div class="controls">
								<input type="text" class="input-xlarge focused" name="title" value="{$r[title]}" style="width:450px;">
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="name">默认广告内容：</label>
							<div class="controls">
								<textarea rows="6" style="width:450px;" name="content">{$r[content]}</textarea>
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="name">状态：</label>
							<div class="controls">
								<select name="status">
									<option value="1" {if $r[status]=="1" }selected='selected' {/if}>启用</option>
									<option value="0" {if $r[status]=="0" }selected='selected' {/if}>禁用</option>
								</select>
							</div>
						</div>
						<div class="form-actions" style="border-top: none;">
							<input type="submit" class="btn" value="保存" />
							<input type="button" class="btn btn-link" value="返回" onclick="location.href='?m=ads'" />
						</div>
					</form>
				</div>
			</div>
			<div style="margin:10px; height: 46px; line-height: 46px; color: #1694CA; padding-left: 20px; font-weight: 300; background-color: #F1F3F6;">分域名广告内容列表</div>
			<div class="cp-table-top">
				<input type="submit" class="btn" value="添加广告内容" onclick="window.location.href='?m=ads&a=subadd&abc={$r[abc]}' ">
			</div>
			<div class="cp-table">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<th width="50" align="left">ID</th>
							<th width="300" align="left">所属站点</th>
							<th width="100"  align="left">状态</th>
							<th width="100" align="center">操作</th>
						</tr>
						<!-- foreach $list -->
						<tr>
							<td align="left"> {$id}</td>
							<td align="left"> {if isset($allyuming[$yuming_id])}{$allyuming[$yuming_id]['name']}{else}全局{/if}</td>
							<td align="left">
								{if $status=="1"}
								启用
								{elseif $status=="0"}
								禁用
								{/if}
							</td>
							<td align="center">
								<a href="?m=ads&a=subedit&id={$id}">修改</a>
								|
								<a href="?m=ads&a=del&id={$id}" onclick="return confirm('?')">删除</a>
							</td>
						</tr>
						<!-- /foreach -->
					</tbody>
				</table>
			</div>
		</div>
	<!-- include footer -->
	<script>


	</script>
</body>

</html>
